{{template "header"}}
<title>首页 - 我的 beego 博客</title>
</head>

<body>
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			{{template "navbar" .}}
		</div>
	</nav>
	<div class="container">
		<div class="col-md-9">
			<div class="page-header">
				{{range .Topics}}
				<h1>
					<a href="/topic/view/{{.Id}}">{{.Title}}</a>
				</h1>
				<h5 class="text-muted">分类：{{.Category}}</h5>
				<h6 class="text-muted">文章发表于 {{.Created}},共{{.Views}}次浏览，{{.ReplyCount}}个评论</h6>
				<p>
					{{.Content}}
				</p>
				{{end}}
			</div>
		</div>
		<div class="col-md-3">
			<h3>文章分类</h3>
			<ul>
				{{range .Categories}}
				<li><a href="/?cate={{.Title}}">{{.Title}}</a></li>
				{{end}}
			</ul>
		</div>
	</div>

	<script type="text/javascript" src="http://cdn.staticfile.org/jquery/2.0.3/jquery.min.js"></script>
	<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
</body>

</html>